class Game < ActiveRecord::Base
  has_and_belongs_to_many :events
  has_and_belongs_to_many :tags
  has_and_belongs_to_many :teams
  has_and_belongs_to_many :intervals
  has_and_belongs_to_many :rule_sets
  has_and_belongs_to_many :scores

  def get_game_summary(id)
    game = Game.find(:first, :include => [:intervals, :teams], :conditions => ["games.id = ?", id])
  end


end
